<template>
	<ui-textarea
		v-model="innerValue"
		:placeholder="placeholder"
	></ui-textarea>
</template>

<script>
	export default {
		name: 'DynamicFormControlTextarea',
		props: {
			value: {
				type: String
			},
			schema: {
				type: Object
			}
		},
		computed: {
			innerValue: {
				get () {
					return this.value
				},
				set (val) {
					this.$emit('input', val)
				}
			},
			placeholder () {
				return this.schema.placeholder || '请输入'
			}
		}
	}
</script>

<style>
</style>
